package com.lsh.oms.api.model.order;

import lombok.*;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Project Name: lsh-oms
 *
 * @author peter
 * @date 17/3/27
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class OrderReceiptPayNotifyDTO implements Serializable {

    private static final long serialVersionUID = -4858620054298516878L;

    @NotNull
    private String trade_id;

    /**
     * 支付平台类型 1-支付宝, 2-微信
     */
    @NotEmpty
    private String channel_type;

    /**
     * 支付金额（元）
     */
    @NotEmpty
    private String payment_amount;

    /**
     * 支付平台流水号
     */
    @NotEmpty
    private String pay_payment_no;

    /**
     * 支付结果标识
     */
    @NotEmpty
    private String pay_code;

    private String nonce_str;

    private String sign;

}
